﻿using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.TenantManagement;

namespace GroupMeal.Merchants
{
    /// <summary>
    /// 商户实体类
    /// </summary>
    public class Merchant:FullAuditedEntity<Guid>
    {

        // 微信小程序ID
        public virtual string? WX_AppId { get; set; }

        // 微信小程序密码（需要加密后存储）
        public virtual string? WX_AppSecret { get; set; }

        // 抖音小程序ID
        public virtual string? DY_AppId { get; set; }

        // 抖音小程序密码(需加密后存储)
        public virtual string? DY_AppSecret { get; set; }

        /// <summary>
        /// 抖音小程序OpenId
        /// </summary>
        public virtual string DY_OpenId
        {
            get;set;
        }

        /// <summary>
        /// 字节平台UnionID
        /// </summary>
        public virtual string? DY_UnionId
        {
            get;set;
        }

        /// <summary>
        /// 抖音头像
        /// </summary>
        public virtual string? DY_HeadUrl
        {
            get;set;
        }

        /// <summary>
        /// 身份证号
        /// </summary>
        public virtual string? IdCard
        {
            get;set;
        }


        /// <summary>
        /// 店铺/企业名称
        /// </summary>
        public virtual string? ShopName
        {
            get;set;
        }

        /// <summary>
        /// 手机号
        /// </summary>
        public virtual string PhoneNumber
        {
            get;set;
        }

        /// <summary>
        /// 租户ID
        /// </summary>
        public virtual Guid TenantId
        {
            get;set;
        }

        /// <summary>
        /// 租户
        /// </summary>
        public virtual Tenant Tenant
        {
            get;set;
        }

        /// <summary>
        /// 是否接入系统
        /// </summary>
        public virtual bool IsVip
        {
            get;set;
        }

        /// <summary>
        /// 续费到期时间
        /// </summary>
        public virtual DateTime ExprieTime
        {
            get;set;
        }

        /// <summary>
        /// 最后一次充值记录ID
        /// </summary>
        public virtual Guid? LastRechargeId
        {
            get;set;
        }

        /// <summary>
        /// 最后一次充值记录
        /// </summary>
        public virtual Recharge? LastRecharge
        {
            get;set;
        }


        /// <summary>
        /// 充值记录集合
        /// </summary>
        public virtual List<Recharge>? Recharges
        {
            get;set;
        }

        /// <summary>
        /// 商户订单
        /// </summary>
        public virtual List<MerchantOrder>? MerchantOrders { get; set; }

    }
}
